<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=+, initial-scale=1.0">
    <title>Document</title>
    <style>
        p{
            color: red;
        }
    </style>
</head>

<body>
    <div id="app">
        <h3>{{message}}</h3>
        <p>{{str}}</p>
        <p>{{bt}}</p>
        <!-- v-bind可以简写成: -->
        <p v-bind:title="text">悬浮显示</p>
        <p :title="text">悬浮显示</p>
        <!-- v-if和v-show效果差不多，但是if会让元素消失。show只会隐藏 -->
        <p v-show="isheid">是否隐藏</p>
        <p v-if="isheid">是否隐藏</p>
        <p v-for="(value,index) in arr" :key='index'>{{value.name}}年龄为{{value.num}}下标为{{index}}</p>
        <h3>事件</h3>
        <!-- v-on:click||@click -->
        <p>{{num}}</p>
        <p @click="dianji">点击事件</p>
        <!-- v-model双向数据绑定 -->
    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script src="./js/base.js"></script>
</body>

</html>